<div class="skills view">
<h2><?php  __('Skill');?>: <?php echo $skill['LocalizedString'][$locale]; ?></h2>
	<dl>
		<dt><?php __('Description'); ?></dt>
		<dd><?php echo $skill['FormattedString'][$locale]; ?>&nbsp;</dd>
		<dt><?php __('Category'); ?></dt>
		<dd><?php echo $html->link($skill['SkillCategory']['LocalizedString'][$locale], array('controller' => 'skill_categories', 'action' => 'view', $skill['SkillCategory']['id'])); ?>&nbsp;</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Skills', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('List Skill Categories', true), array('controller' => 'skill_categories', 'action' => 'index')); ?> </li>
    </ul>
</div>
<div class="related">
	<h3><?php __('Related Player Types');?></h3>
	<?php if (!empty($skill['PlayerType'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('DATA CONSTANT'); ?></th>
		<th><?php __('Race Id'); ?></th>
		<th><?php __('Player Basetype Id'); ?></th>
		<th><?php __('Player Name Type Id'); ?></th>
		<th><?php __('IdStrings Localized'); ?></th>
		<th><?php __('StrName'); ?></th>
		<th><?php __('Characteristics FMovementAllowance'); ?></th>
		<th><?php __('Characteristics FStrength'); ?></th>
		<th><?php __('Characteristics FAgility'); ?></th>
		<th><?php __('Characteristics FArmourValue'); ?></th>
		<th><?php __('IPrice'); ?></th>
		<th><?php __('IMaxQuantity'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($skill['PlayerType'] as $playerType):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $playerType['id'];?></td>
			<td><?php echo $playerType['DATA_CONSTANT'];?></td>
			<td><?php echo $playerType['race_id'];?></td>
			<td><?php echo $playerType['player_basetype_id'];?></td>
			<td><?php echo $playerType['player_name_type_id'];?></td>
			<td><?php echo $playerType['idStrings_Localized'];?></td>
			<td><?php echo $playerType['strName'];?></td>
			<td><?php echo $playerType['Characteristics_fMovementAllowance'];?></td>
			<td><?php echo $playerType['Characteristics_fStrength'];?></td>
			<td><?php echo $playerType['Characteristics_fAgility'];?></td>
			<td><?php echo $playerType['Characteristics_fArmourValue'];?></td>
			<td><?php echo $playerType['iPrice'];?></td>
			<td><?php echo $playerType['iMaxQuantity'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'player_types', 'action' => 'view', $playerType['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'player_types', 'action' => 'edit', $playerType['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'player_types', 'action' => 'delete', $playerType['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $playerType['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>
